function fn() {
	var c = new Date();
	var g = "";
	var a = document.getElementById("time");
	var i = c.getFullYear();
	var e = c.getMonth() + 1;
	var j = c.getDate();
	var f = c.getHours();
	var d = c.getMinutes();
	var k = c.getSeconds();
	var b = c.getDay();
	switch(b) {
		case 0:
			b = "日";
			break;
		case 1:
			b = "一";
			break;
		case 2:
			b = "二";
			break;
		case 3:
			b = "三";
			break;
		case 4:
			b = "四";
			break;
		case 5:
			b = "五";
			break;
		case 6:
			b = "六";
			break
	}
	g = i + "年" + totwo(e) + "月" + totwo(j) + "日&nbsp;星期" + b + "&nbsp;" + totwo(f) + ":" + totwo(d) + ":" + totwo(k);
	a.innerHTML = g
}
$(function() {
	fn();
	setInterval(fn, 1000)
});

function totwo(a) {
	if(a <= 9) {
		return a = "0" + a
	} else {
		return a = "" + a
	}
};